<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.ScrollView类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_scroll_view.html">ScrollView</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classawtk_1_1_scroll_view-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.ScrollView类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.ScrollView 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_scroll_view.png" usemap="#awtk.ScrollView_map" alt=""/>
  <map id="awtk.ScrollView_map" name="awtk.ScrollView_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a373fe49fb2897b40fc37534cb8e5df1c"><td class="memItemLeft" align="right" valign="top"><a id="a373fe49fb2897b40fc37534cb8e5df1c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>ScrollView</b> (long nativeObj)</td></tr>
<tr class="separator:a373fe49fb2897b40fc37534cb8e5df1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab54ed2aa449b6526f6e424fbe4307ae8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_view.html#ab54ed2aa449b6526f6e424fbe4307ae8">setVirtualW</a> (int w)</td></tr>
<tr class="separator:ab54ed2aa449b6526f6e424fbe4307ae8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f2ca9deaf60efa1acc11b820f722610"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_view.html#a5f2ca9deaf60efa1acc11b820f722610">setVirtualH</a> (int h)</td></tr>
<tr class="separator:a5f2ca9deaf60efa1acc11b820f722610"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f5ca51b36e61558e5ab77cc872577d2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_view.html#a8f5ca51b36e61558e5ab77cc872577d2">setXslidable</a> (boolean xslidable)</td></tr>
<tr class="separator:a8f5ca51b36e61558e5ab77cc872577d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e9e9f4049d32c4465324f3c8369e8f8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_view.html#a3e9e9f4049d32c4465324f3c8369e8f8">setYslidable</a> (boolean yslidable)</td></tr>
<tr class="separator:a3e9e9f4049d32c4465324f3c8369e8f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab292b0b21ef810991c99e5d7fdffa252"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_view.html#ab292b0b21ef810991c99e5d7fdffa252">setOffset</a> (int xoffset, int yoffset)</td></tr>
<tr class="separator:ab292b0b21ef810991c99e5d7fdffa252"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2d019e51ed4208cd2913e4c0585f672"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_view.html#ac2d019e51ed4208cd2913e4c0585f672">setSpeedScale</a> (double xspeed_scale, double yspeed_scale)</td></tr>
<tr class="separator:ac2d019e51ed4208cd2913e4c0585f672"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06abd7a83547311b16de9d4de5d21e3f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_view.html#a06abd7a83547311b16de9d4de5d21e3f">scrollTo</a> (int xoffset_end, int yoffset_end, int duration)</td></tr>
<tr class="separator:a06abd7a83547311b16de9d4de5d21e3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd89a134d5eb42bf437c2abec3356ed1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_view.html#afd89a134d5eb42bf437c2abec3356ed1">scrollDeltaTo</a> (int xoffset_delta, int yoffset_delta, int duration)</td></tr>
<tr class="separator:afd89a134d5eb42bf437c2abec3356ed1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a546948c1df88134b1af0741a009f0591"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_view.html#a546948c1df88134b1af0741a009f0591">getVirtualW</a> ()</td></tr>
<tr class="separator:a546948c1df88134b1af0741a009f0591"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa770c140e2d0ad94ef2eea0581ffe339"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_view.html#aa770c140e2d0ad94ef2eea0581ffe339">getVirtualH</a> ()</td></tr>
<tr class="separator:aa770c140e2d0ad94ef2eea0581ffe339"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1abbae21ab79cd5be0a355c4f0756150"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_view.html#a1abbae21ab79cd5be0a355c4f0756150">getXoffset</a> ()</td></tr>
<tr class="separator:a1abbae21ab79cd5be0a355c4f0756150"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3b8a6052afe887935a943bdda8a2f6e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_view.html#ab3b8a6052afe887935a943bdda8a2f6e">getYoffset</a> ()</td></tr>
<tr class="separator:ab3b8a6052afe887935a943bdda8a2f6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ad897ebbdf76b789242ac94e35dc1e0"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_view.html#a5ad897ebbdf76b789242ac94e35dc1e0">getXspeedScale</a> ()</td></tr>
<tr class="separator:a5ad897ebbdf76b789242ac94e35dc1e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ca6120ff741116e05363fb746648199"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_view.html#a6ca6120ff741116e05363fb746648199">getYspeedScale</a> ()</td></tr>
<tr class="separator:a6ca6120ff741116e05363fb746648199"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f56ecdf82ef4d7aa510c47543d37703"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_view.html#a1f56ecdf82ef4d7aa510c47543d37703">getXslidable</a> ()</td></tr>
<tr class="separator:a1f56ecdf82ef4d7aa510c47543d37703"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86755e057d4493cf440e453dd76b8473"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_view.html#a86755e057d4493cf440e453dd76b8473">getYslidable</a> ()</td></tr>
<tr class="separator:a86755e057d4493cf440e453dd76b8473"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:ade1ad801dddb92ccc3a13f16cb111ccf"><td class="memItemLeft" align="right" valign="top"><a id="ade1ad801dddb92ccc3a13f16cb111ccf"></a>
static <a class="el" href="classawtk_1_1_scroll_view.html">ScrollView</a>&#160;</td><td class="memItemRight" valign="bottom"><b>cast</b> (long nativeObj)</td></tr>
<tr class="separator:ade1ad801dddb92ccc3a13f16cb111ccf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4877dfea64f6e3bbaeddaff24f19ddab"><td class="memItemLeft" align="right" valign="top">static Widget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_view.html#a4877dfea64f6e3bbaeddaff24f19ddab">create</a> (Widget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:a4877dfea64f6e3bbaeddaff24f19ddab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca38a15bb41d7b9897ed9b2d9777a47d"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_scroll_view.html">ScrollView</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_view.html#aca38a15bb41d7b9897ed9b2d9777a47d">cast</a> (Widget widget)</td></tr>
<tr class="separator:aca38a15bb41d7b9897ed9b2d9777a47d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a57e279b18e4e69e51cdb2fc6da2e013d"><td class="memItemLeft" align="right" valign="top"><a id="a57e279b18e4e69e51cdb2fc6da2e013d"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:a57e279b18e4e69e51cdb2fc6da2e013d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>滚动视图。</p>
<p>scroll_view_t是widget的子类控件，widget_t的函数均适用于scroll_view_t控件。</p>
<p>在xml中使用"scroll\_view"标签创建滚动视图控件。如：</p>
<div class="fragment"><div class="line">&lt;<span class="keywordtype">list_view</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span>  <span class="keyword">y</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;-80&quot;</span> <span class="keyword">item_height</span>=<span class="stringliteral">&quot;60&quot;</span>&gt;</div><div class="line">&lt;<span class="keywordtype">scroll_view</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;view&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span>  <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span>&gt;</div><div class="line">&lt;<span class="keywordtype">list_item</span> <span class="keyword">style</span>=<span class="stringliteral">&quot;odd&quot;</span> <span class="keyword">children_layout</span>=<span class="stringliteral">&quot;default(rows=1,cols=0)&quot;</span>&gt;</div><div class="line">&lt;<span class="keywordtype">image</span> <span class="keyword">draw_type</span>=<span class="stringliteral">&quot;icon&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">image</span>=<span class="stringliteral">&quot;earth&quot;</span>/&gt;</div><div class="line">&lt;<span class="keywordtype">label</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;-30&quot;</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;1.Hello AWTK !&quot;</span>&gt;</div><div class="line">&lt;<span class="keywordtype">switch</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;r:10&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;m&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;60&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;20&quot;</span>/&gt;</div><div class="line">&lt;/<span class="keywordtype">label</span>&gt;</div><div class="line">&lt;/<span class="keywordtype">list_item</span>&gt;</div><div class="line">...</div><div class="line">&lt;/<span class="keywordtype">scroll_view</span>&gt;</div><div class="line">&lt;/<span class="keywordtype">list_view</span>&gt;</div></div><!-- fragment --><p>滚动视图一般作为列表视图的子控件使用。</p>
<p>更多用法请参考：<a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/list_view_m.xml">list_view_m.xml</a></p>
<p>在c代码中使用函数scroll_view_create创建列表视图控件。如：</p>
<p>可用通过style来设置控件的显示风格，如背景颜色和边框颜色等(一般情况不需要)。 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="aca38a15bb41d7b9897ed9b2d9777a47d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca38a15bb41d7b9897ed9b2d9777a47d">&#9670;&nbsp;</a></span>cast()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_scroll_view.html">ScrollView</a> awtk.ScrollView.cast </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为scroll_view对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>scroll_view对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>scroll_view对象。 </dd></dl>

</div>
</div>
<a id="a4877dfea64f6e3bbaeddaff24f19ddab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4877dfea64f6e3bbaeddaff24f19ddab">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Widget awtk.ScrollView.create </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建scroll_view对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="aa770c140e2d0ad94ef2eea0581ffe339"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa770c140e2d0ad94ef2eea0581ffe339">&#9670;&nbsp;</a></span>getVirtualH()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.ScrollView.getVirtualH </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>虚拟高度。 </p>

</div>
</div>
<a id="a546948c1df88134b1af0741a009f0591"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a546948c1df88134b1af0741a009f0591">&#9670;&nbsp;</a></span>getVirtualW()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.ScrollView.getVirtualW </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>虚拟宽度。 </p>

</div>
</div>
<a id="a1abbae21ab79cd5be0a355c4f0756150"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1abbae21ab79cd5be0a355c4f0756150">&#9670;&nbsp;</a></span>getXoffset()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.ScrollView.getXoffset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>x偏移量。 </p>

</div>
</div>
<a id="a1f56ecdf82ef4d7aa510c47543d37703"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f56ecdf82ef4d7aa510c47543d37703">&#9670;&nbsp;</a></span>getXslidable()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.ScrollView.getXslidable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否允许x方向滑动。 </p>

</div>
</div>
<a id="a5ad897ebbdf76b789242ac94e35dc1e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ad897ebbdf76b789242ac94e35dc1e0">&#9670;&nbsp;</a></span>getXspeedScale()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.ScrollView.getXspeedScale </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>x偏移速度比例。 </p>

</div>
</div>
<a id="ab3b8a6052afe887935a943bdda8a2f6e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3b8a6052afe887935a943bdda8a2f6e">&#9670;&nbsp;</a></span>getYoffset()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.ScrollView.getYoffset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>y偏移量。 </p>

</div>
</div>
<a id="a86755e057d4493cf440e453dd76b8473"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a86755e057d4493cf440e453dd76b8473">&#9670;&nbsp;</a></span>getYslidable()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.ScrollView.getYslidable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否允许y方向滑动。 </p>

</div>
</div>
<a id="a6ca6120ff741116e05363fb746648199"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6ca6120ff741116e05363fb746648199">&#9670;&nbsp;</a></span>getYspeedScale()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.ScrollView.getYspeedScale </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>y偏移速度比例。 </p>

</div>
</div>
<a id="afd89a134d5eb42bf437c2abec3356ed1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afd89a134d5eb42bf437c2abec3356ed1">&#9670;&nbsp;</a></span>scrollDeltaTo()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.ScrollView.scrollDeltaTo </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>xoffset_delta</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>yoffset_delta</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>duration</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>滚动到指定的偏移量。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">xoffset_delta</td><td>x偏移量。 </td></tr>
    <tr><td class="paramname">yoffset_delta</td><td>y偏移量。 </td></tr>
    <tr><td class="paramname">duration</td><td>时间。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a06abd7a83547311b16de9d4de5d21e3f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a06abd7a83547311b16de9d4de5d21e3f">&#9670;&nbsp;</a></span>scrollTo()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.ScrollView.scrollTo </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>xoffset_end</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>yoffset_end</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>duration</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>滚动到指定的偏移量。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">xoffset_end</td><td>x偏移量。 </td></tr>
    <tr><td class="paramname">yoffset_end</td><td>y偏移量。 </td></tr>
    <tr><td class="paramname">duration</td><td>时间。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ab292b0b21ef810991c99e5d7fdffa252"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab292b0b21ef810991c99e5d7fdffa252">&#9670;&nbsp;</a></span>setOffset()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.ScrollView.setOffset </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>xoffset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>yoffset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置偏移量。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">xoffset</td><td>x偏移量。 </td></tr>
    <tr><td class="paramname">yoffset</td><td>y偏移量。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ac2d019e51ed4208cd2913e4c0585f672"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac2d019e51ed4208cd2913e4c0585f672">&#9670;&nbsp;</a></span>setSpeedScale()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.ScrollView.setSpeedScale </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>xspeed_scale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>yspeed_scale</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置偏移速度比例。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">xspeed_scale</td><td>x偏移速度比例。。 </td></tr>
    <tr><td class="paramname">yspeed_scale</td><td>y偏移速度比例。。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a5f2ca9deaf60efa1acc11b820f722610"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f2ca9deaf60efa1acc11b820f722610">&#9670;&nbsp;</a></span>setVirtualH()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.ScrollView.setVirtualH </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置虚拟高度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">h</td><td>虚拟高度。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ab54ed2aa449b6526f6e424fbe4307ae8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab54ed2aa449b6526f6e424fbe4307ae8">&#9670;&nbsp;</a></span>setVirtualW()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.ScrollView.setVirtualW </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置虚拟宽度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">w</td><td>虚拟宽度。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a8f5ca51b36e61558e5ab77cc872577d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f5ca51b36e61558e5ab77cc872577d2">&#9670;&nbsp;</a></span>setXslidable()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.ScrollView.setXslidable </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>xslidable</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置是否允许x方向滑动。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">xslidable</td><td>是否允许滑动。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a3e9e9f4049d32c4465324f3c8369e8f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e9e9f4049d32c4465324f3c8369e8f8">&#9670;&nbsp;</a></span>setYslidable()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.ScrollView.setYslidable </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>yslidable</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置是否允许y方向滑动。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">yslidable</td><td>是否允许滑动。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/ScrollView.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
